package com.czm.art_light.param.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

/**
 * 话题或者类别或者流派详细 请求DTO
 */
@Schema(description = "话题或者类别或者流派详细 请求DTO")
@EqualsAndHashCode(callSuper = true)
@Data
public class ArtInfoReqDto extends PageReqDto implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 请求的id
     */
    @Schema(description = "请求的id", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "请求的id不能为空")
    @Min(value = 1,message = "请求的id最小为1")
    private Integer id;
}
